<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/base.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/style.css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-2.1.4.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/lib/icheck/jquery.icheck.min.js"></script> 
		<script type="text/javascript" src="${pageContext.request.contextPath}/lib/Validform/5.3.2/Validform.min.js"></script>
		<title>添加人员</title>
	</head>
	<body>
	<form action="${pageContext.request.contextPath}/staff/addStaff.html" method="post" id="myform">
		<div class="page">
			<div class="header">
				<div class="header_top"></div>
				<div class="header_bottom clearfix">
					<div class="header_logo fl">
						<img src="${pageContext.request.contextPath}/images/images/index-logo.png">
					</div>
					<ul class="header_nav clearfix fl">
						<li>
							<a href="${pageContext.request.contextPath}/morder/waitOrderList.html">订单管理</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/staff/queryAllList/1.html" class="on">家政人员管理</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/supplier/account.html">财务管理</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/admin/accountInfo.html">账户管理</a>
						</li>
					</ul>
					<div class="header_user fr">
						<img src="${pageContext.request.contextPath}/images/images/user.png">欢迎您，<i>${ sessionScope.MANAGER_NAME} </i><a href="${pageContext.request.contextPath}/manager/loginout.html">【切换账号】</a>
					</div>
				</div>
			</div>
			<div class="main clearfix">
				<div class="main_menu fl" style="min-height: 2480px;">
					<div class="menu_name">
						<a href="${pageContext.request.contextPath}/staff/queryAllList/1.html">
							<img src="${pageContext.request.contextPath}/images/images/qbry.png">
							<p>全部人员</p>
						</a>
					</div>
					<div class="menu_name">
						<a href="${pageContext.request.contextPath}/staff/list/1.html">
							<img src="${pageContext.request.contextPath}/images/images/sjry.png">
							<p>上架人员</p>
						</a>
					</div>
					<div class="menu_name add_people on">
						<a href="${pageContext.request.contextPath}/staff/add.html">
							<img src="${pageContext.request.contextPath}/images/images/tjry.png">
							<p>添加人员</p>
						</a>
					</div>
					<div class="menu_name screen">
						<a>
							<img src="${pageContext.request.contextPath}/images/images/sxry.png">
							<p>筛选人员</p>
						</a>
					</div>
				</div>
				<div class="main_cont fl" style="height: 100%;">
					<div class="main_cont_top">
						<div class="main_inner clearfix">
							<div class="cont_top_title fl">当前位置：家政人员管理 > 添加人员</div>
							<div class="cont_top_time fr"><i><img src="${pageContext.request.contextPath}/images/images/refresh.png">刷新</i></div>
						</div>
					</div>
					<div class="add_main">
						<div class="staff_basic">
							<h3>家政人员基本资料</h3>
							<div class="staff_basic_inner">
								<p><span><i>*</i>身份证号：</span><input type="text" name="wSIdcard" id="wSIdcard"></p>
								<p><span><i>*</i>人员姓名：</span><input type="text" name="wSName" id="wSName"></p>
								<p><span><i>*</i>联系方式：</span><input type="text"  name="wSTelephone" id="wSTelephone"></p>
								<p><span><i>*</i>现居住地：</span><input type="text" name="wSAddress" id="wSAddress"></p>
								<p><span class="tc">籍贯：</span><input type="text" name="wSNation" id="wSNation" ></p>
								<p><span class="tc">年龄：</span><input type="number" name="wSAge" id="wSAge" ></p>
								<div class="clearfix sex">
									<p class="tc fl">性别：</p>
									<ul class="clearfix fl" id="sex">
										<li>男</li>
										<li class="on">女</li>
									</ul>
								</div>
								<div class="clearfix highest_degree">
									<p class="tc fl">最高学历：</p>
									<ul class="clearfix fl" id="edu">
										<li>小学</li>
										<li>初中</li>
										<li class="on">高中</li>
										<li>大专</li>
										<li>本科</li>
										<li>其他</li>
									</ul>
								</div>
							</div>
						</div>
						<div class="staff_basic">
							<h3>家政人员头像</h3>
							<div class="staff_basic_inner pr">
								<input type="file" class="add_file pa" id="headerpic" name="headerpic" onchange="showPicture()">
								<img src="${pageContext.request.contextPath}/images/images/add_img.png" id="headimage" name="headimage" class="add_img">
							</div>
						</div>
						<div class="staff_basic">
							<h3>求职信息</h3>
							<div class="staff_basic_inner">
								<div class="clearfix working">
									<p class="tc fl"><i>*</i>工作状态：</p>
									<ul class="clearfix fl" id="workerstatus">
										<li class="on">待岗</li>
										<li>在职</li>
									</ul>
								</div>
								<div class="clearfix area">
									<p class="tc fl">目标区域：</p>
									<ul class="clearfix fl" id="address">
										<li>江北区</li>
										<li>渝中区</li>
										<li>渝北区</li>
										<li>沙坪坝区</li>
										<li>南岸区</li>
										<li>九龙坡区</li>
										<li>大渡口区</li>
										<li>北碚区</li>
										<li>巴南区</li>
									</ul>
								</div>
								<div class="clearfix specialty">
									<p class="tc fl">个人特长：</p>
									<ul class="clearfix fl mb10" id="allTechang">
										<li>普通话</li>
										<li>会英语</li>
										<li>会日语</li>
										<li>会做川菜</li>
										<li>会做面食</li>
										<li>会做西餐</li>
									</ul>
									<div class="add_specialty">
										<input type="text" placeholder="找不到，在此输入" class="add_input" id="techang" name="techang">
										<button class="add_btn" type="button" onclick="addTechang();">添加</button>
									</div>
								</div>
								<div class="profile">
									<p class="tc fl">个人简介：</p>
									<p><textarea id="wSDesc" name="wSDesc">您可以在此添加阿姨的详细介绍</textarea></p>
								</div>
							</div>
						</div>
						<div class="staff_basic">
							<h3>求职意向</h3>
							<div class="staff_basic_inner">
								<div class="clearfix Job_intention">
									<p class="tc fl"><i>*</i>工作类型：</p>
									<ul class="clearfix fl" id="alltypework">
										<li>住家保姆</li>
										<li>月嫂</li>
										<li>育婴师</li>
										<li>看护老人</li>
										<li>医院护工</li>
										<li>长期钟点工</li>
										<li>临时保洁</li>
										<li>开锁换锁</li>
										<li>管道疏通</li>
										<li>马桶维修</li>
									</ul>
								</div>
								<div class="job_content">
									<div class="job_cont">
										<div class="job_cont_name">添加更多住家保姆信息</div>
										<div class="clearfix specialty">
											<p class="fl">工作内容：</p>
											<ul class="clearfix fl mb10" id="allBaomu">
												<li>照看小孩</li>
												<li>洗衣熨烫</li>
												<li>烧饭</li>
												<li>开车</li>
												<li>保洁</li>
											</ul>
											<div class="add_specialty">
												<input type="text" placeholder="找不到，在此输入" class="add_input" id="baomu">
												<button class="add_btn" type="button" onclick="addContent('baomu','allBaomu');">添加</button>
											</div>
										</div>
										<p><span>期望工资：</span><input type="text" placeholder="期望最低工资" style="width: 120px;" id="startbaomu"> 至 <input type="text" placeholder="期望最高工资" style="width: 120px;" id="endbaomu"> /月</p>
										<p><span>工作经验：</span>
											<select id="yearbaomu">
												<option>1</option>
												<option>2</option>
												<option>3</option>
												<option>4</option>
												<option>5</option>
												<option>6</option>
												<option>7</option>
												<option>8</option>
												<option>9</option>
												<option>10</option>
												<option>11</option>
												<option>12</option>
												<option>13</option>
												<option>14</option>
												<option>15</option>
												<option>16</option>
												<option>17</option>
												<option>18</option>
												<option>19</option>
												<option>20</option>
											</select>
										 年</p>
									</div>
									<div class="job_cont">
										<div class="job_cont_name">添加更多月嫂信息</div>
										<div class="clearfix specialty">
											<p class="fl">工作内容：</p>
											<ul class="clearfix fl mb10" id="allyuesao">
												<li>月子餐</li>
												<li>开奶</li>
												<li>婴儿抚触</li>
												<li>婴儿带睡</li>
												<li>产妇按摩</li>
												<li>恶露观察</li>
											</ul>
											<div class="add_specialty">
												<input type="text" placeholder="找不到，在此输入" class="add_input" id="yuesao">
												<button type="button" class="add_btn" onclick="addContent('yuesao','allyuesao');">添加</button>
											</div>
										</div>
										<p><span>期望工资：</span><input type="text" placeholder="期望最低工资" style="width: 120px;" id="startyuesao"> 至 <input type="text" placeholder="期望最高工资" style="width: 120px;" id="endyuesao"> /月</p>
										<p><span>工作经验：</span>
											<select id="yearyuesao">
												<option>1</option>
												<option>2</option>
												<option>3</option>
												<option>4</option>
												<option>5</option>
												<option>6</option>
												<option>7</option>
												<option>8</option>
												<option>9</option>
												<option>10</option>
												<option>11</option>
												<option>12</option>
												<option>13</option>
												<option>14</option>
												<option>15</option>
												<option>16</option>
												<option>17</option>
												<option>18</option>
												<option>19</option>
												<option>20</option>
											</select>
										 年</p>
									</div>
									<div class="job_cont">
										<div class="job_cont_name">添加更多育婴师信息</div>
										<div class="clearfix specialty">
											<p class="fl">工作内容：</p>
											<ul class="clearfix fl mb10" id="allyuersao">
												<li>辅食制作</li>
												<li>宝宝带睡</li>
												<li>育儿服务</li>
												<li>一般家务</li>
												<li>烧饭</li>
											</ul>
											<div class="add_specialty">
												<input type="text" placeholder="找不到，在此输入" class="add_input" id="yuersao">
												<button class="add_btn" type="button"  onclick="addContent('yuersao','allyuersao');">添加</button>
											</div>
										</div>
										<p><span>期望工资：</span><input type="text" placeholder="期望最低工资" style="width: 120px;" id="startyuersao"> 至 <input type="text" placeholder="期望最高工资" style="width: 120px;" id="endyuersao"> /月</p>
										<p><span>工作经验：</span>
											<select id="yearyuersao">
												<option>1</option>
												<option>2</option>
												<option>3</option>
												<option>4</option>
												<option>5</option>
												<option>6</option>
												<option>7</option>
												<option>8</option>
												<option>9</option>
												<option>10</option>
												<option>11</option>
												<option>12</option>
												<option>13</option>
												<option>14</option>
												<option>15</option>
												<option>16</option>
												<option>17</option>
												<option>18</option>
												<option>19</option>
												<option>20</option>
											</select>
										 年</p>
									</div>
									<div class="job_cont">
										<div class="job_cont_name">添加更多看护老人信息</div>
										<div class="clearfix specialty">
											<p class="fl">工作内容：</p>
											<ul class="clearfix fl mb10" id="alllaoren">
												<li>喂食喂药</li>
												<li>协助起居</li>
												<li>烧饭保洁</li>
												<li>污物处理</li>
												<li>洗澡擦身</li>
												<li>按摩推拿</li>
											</ul>
											<div class="add_specialty">
												<input type="text" placeholder="找不到，在此输入" class="add_input" id="laoren">
												<button class="add_btn" type="button" onclick="addContent('laoren','alllaoren');">添加</button>
											</div>
										</div>
										<div class="clearfix specialty oldsex">
											<p class="fl">服务对象：</p>
											<ul class="clearfix fl mb10" id="oldsex">
												<li>男老人</li>
												<li>女老人</li>
											</ul>
										</div>
										<div class="clearfix specialty zili">
											<p class="fl">老人状态：</p>
											<ul class="clearfix fl mb10" id="oldstatus">
												<li>全自理</li>
												<li>半自理</li>
												<li>不能自理</li>
											</ul>
										</div>
										<p><span>期望工资：</span><input type="text" placeholder="期望最低工资" style="width: 120px;" id="startlaoren"> 至 <input type="text" placeholder="期望最高工资" style="width: 120px;" id="endlaoren"> /月</p>
										<p><span>工作经验：</span>
											<select id="yearlaoren">
												<option>1</option>
												<option>2</option>
												<option>3</option>
												<option>4</option>
												<option>5</option>
												<option>6</option>
												<option>7</option>
												<option>8</option>
												<option>9</option>
												<option>10</option>
												<option>11</option>
												<option>12</option>
												<option>13</option>
												<option>14</option>
												<option>15</option>
												<option>16</option>
												<option>17</option>
												<option>18</option>
												<option>19</option>
												<option>20</option>
											</select>
										 年</p>
									</div>
								</div>
							</div>
						</div>
						<div class="staff_basic">
							<h3>人员证书</h3>
							<div class="staff_basic_inner">
								<div class="clearfix xg_zhengjian">
									<p class="tc fl">相关证件：</p>
									<ul class="clearfix fl mb10">
										<li class="on">身份证</li>
										<li>护照</li>
									</ul>
									<div class="zhengshu_main clearfix" style="clear: both;margin-left: 100px;display: none;" id="cidsdiv">
										<div class="zhengshu_name fl">身份证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/img_file.png" class="zs_img" id="cidsimage" name="cidsimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="cids" name="cids" onchange="uploadPicture('cids','cidsimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('cids','cidsimage');">
										</div>
									</div>
									<div class="zhengshu_main clearfix" style="clear: both;margin-left: 100px;display: none;" id="huzhaodiv">
										<div class="zhengshu_name fl">护照</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="huzhaoimage" name="huzhaoimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="huzhao" name="huzhao" onchange="uploadPicture('huzhao','huzhaoimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('huzhao','huzhaoimage');">
										</div>
									</div>
								</div>
								<div class="clearfix xg_zhengshu">
									<p class="tc fl">相关证书：</p>
									<ul class="clearfix fl mb10">
										<li class="on">健康证</li>
										<li>母婴护理证</li>
										<li>育婴师证</li>
										<li>早教证</li>
										<li>营养师证</li>
										<li>催乳证</li>
										<li>驾驶证</li>
										<li>养老护理证</li>
										<li>厨师证</li>
										<li>家政员工证</li>
										<li>护理上岗证</li>
									</ul>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="jiankangdiv">
										<div class="zhengshu_name fl">健康证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/img_file.png" class="zs_img" id="jiankangimage" name="jiankangimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="jiankang" name="jiankang" onchange="uploadPicture('jiankang','jiankangimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('jiankang','jiankangimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="muyingdiv">
										<div class="zhengshu_name fl">母婴护理证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="muyingimage" name="muyingimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="muying" name="muying" onchange="uploadPicture('muying','muyingimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('muying','muyingimage');">
										</div>
									</div>
									
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="yuyingdiv">
										<div class="zhengshu_name fl">育婴师证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="yuyingimage" name="yuyingimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="yuying" name="yuying" onchange="uploadPicture('yuying','yuyingimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('yuying','yuyingimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="zaojiaodiv">
										<div class="zhengshu_name fl">早教证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="zaojiaoimage" name="zaojiaoimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="zaojiao" name="zaojiao" onchange="uploadPicture('zaojiao','zaojiaoimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('zaojiao','zaojiaoimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="yingyangdiv">
										<div class="zhengshu_name fl">营养师证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="yingyangimage" name="yingyangimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="yingyang" name="yingyang" onchange="uploadPicture('yingyang','yingyangimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('yingyang','yingyangimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="cuirudiv">
										<div class="zhengshu_name fl">催乳证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="cuiruimage" name="cuiruimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="cuiru" name="cuiru" onchange="uploadPicture('cuiru','cuiruimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('cuiru','cuiruimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="jiashidiv">
										<div class="zhengshu_name fl">驾驶证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="jiashiimage" name="jiashiimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="jiashi" name="jiashi" onchange="uploadPicture('jiashi','jiashiimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('jiashi','jiashiimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="yanglaodiv">
										<div class="zhengshu_name fl">养老护理证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="yanglaoimage" name="yanglaoimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="yanglao" name="yanglao" onchange="uploadPicture('yanglao','yanglaoimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('yanglao','yanglaoimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="chushidiv">
										<div class="zhengshu_name fl">厨师证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="chushiimage" name="chushiimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="chushi" name="chushi" onchange="uploadPicture('chushi','chushiimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('chushi','chushiimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="jiazhengdiv">
										<div class="zhengshu_name fl">家政员工证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="jiazhengimage" name="jiazhengimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="jiazheng" name="jiazheng" onchange="uploadPicture('jiazheng','jiazhengimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('jiazheng','jiazhengimage');">
										</div>
									</div>
									<div class="zhengshu_main xgzs clearfix" style="clear: both;margin-left: 100px;display: none;" id="hulidiv">
										<div class="zhengshu_name fl">护理上岗证</div>
										<div class="zhengshu_img fl pr">
											<img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img" id="huliimage" name="huliimage">
											<input type="file" class="pa" style="top:50px;opacity: 0;" id="huli" name="huli" onchange="uploadPicture('huli','huliimage');">
											<img src="${pageContext.request.contextPath}/images/images/close_orange.png" class="pa" style="top:5px;right: 5px;" onclick="deletePicture('huli','huliimage');">
										</div>
									</div>
									
								</div>
							</div>
						</div>
					</div>
					<button class="baocun" type="button" onclick="jiaoyan();">保存人员资料</button>
				</div>
			</div>
		</div>
		
		<input type="hidden" name="wSGender" id="wSGender"  value="0" />
		<input type="hidden" name="wSEdu" id="wSEdu"  value="高中" />
		<input type="hidden" name="wSWorkerStatus" id="wSWorkerStatus"  value="0" />
		<input type="hidden" name="wSAddress" id="wSAddress"  value="" />
		<input type="hidden" name="wSSpecial" id="wSSpecial"  value="" />
		<input type="hidden" name="wSType0" id="t0"  value="0" />
		<input type="hidden" name="wSType1" id="t1"  value="0" />
		<input type="hidden" name="wSType2" id="t2"  value="0" />
		<input type="hidden" name="wSType3" id="t3"  value="0" />
		<input type="hidden" name="wSType4" id="t4"  value="0" />
		<input type="hidden" name="wSType5" id="t5"  value="0" />
		<input type="hidden" name="wSType6" id="t6"  value="0" />
		<input type="hidden" name="wSType7" id="t7"  value="0" />
		<input type="hidden" name="wSType8" id="t8"  value="0" />
		<input type="hidden" name="wSType9" id="t9"  value="0" />
		<input type="hidden" name="wSAttacId" id="wSAttacId" />
		
		<input type="hidden" name="cidsid" id="cidsid" />
		<input type="hidden" name="huzhaoid" id="huzhaoid" />
		<input type="hidden" name="jiankangid" id="jiankangid" />
		<input type="hidden" name="muyingid" id="muyingid" />
		<input type="hidden" name="yuyingid" id="yuyingid" />
		<input type="hidden" name="zaojiaoid" id="zaojiaoid" />
		<input type="hidden" name="yingyangid" id="yingyangid" />
		<input type="hidden" name="cuiruid" id="cuiruid" />
		<input type="hidden" name="jiashiid" id="jiashiid" />
		<input type="hidden" name="yanglaoid" id="yanglaoid" />
		<input type="hidden" name="chushiid" id="chushiid" />
		<input type="hidden" name="jiazhengid" id="jiazhengid" />
		<input type="hidden" name="huliid" id="huliid" />
		
		<input type="hidden" name="wSObjectInfo" id="wSObjectInfo" />
		<input type="hidden" name="wSPriceFirst" id="wSPriceFirst" />
		<input type="hidden" name="wSPriceSecond" id="wSPriceSecond" />
		<input type="hidden" name="wSWokerYear" id="wSWokerYear" />
		<input type="hidden" name="wSOldGender" id="wSOldGender" />
		<input type="hidden" name="wSOldType" id="wSOldType" />
		
		
		</form>
		
	</body>
			<script>
			$(".sex li").click(function(){
				$(".sex li").removeClass("on");
				$(this).addClass("on").siblings().removeClass("on");
			});
			$(".highest_degree li").click(function(){
				$(".highest_degree li").removeClass("on");
				$(this).addClass("on").siblings().removeClass("on");
			});
			$(".working li").click(function(){
				$(".working li").removeClass("on");
				$(this).addClass("on").siblings().removeClass("on");
			});
			
			$(".area li").click(function(){
				if($(this).hasClass("on")){
			        $(this).removeClass("on");
			    }else{
			        $(this).addClass("on");
			    }
			});
			
			
			$(".specialty li").click(function(){
				if($(this).hasClass("on")){
			        $(this).removeClass("on");
			    }else{
			        $(this).addClass("on");
			    }
			});
			
			$(".oldsex li").click(function(){
				$(".oldsex li").removeClass("on");
				$(this).addClass("on").siblings().removeClass("on");
			});
			$(".zili li").click(function(){
				$(".zili li").removeClass("on");
				$(this).addClass("on").siblings().removeClass("on");
			});
			
			var tt0 = true;
			var tt1 = true;
			var tt2 = true;
			var tt3 = true;
			var tt4 = true;
			var tt5 = true;
			var tt6 = true;
			var tt7 = true;
			var tt8 = true;
			var tt9 = true;
			
			$(function(){
				$(".Job_intention li").click(function(){
					
			        //$(this).removeClass("on");
					//$(this).addClass("on").siblings().removeClass("on");
					//$(".job_cont").hide();
					
					
					if(this.innerHTML=="临时保洁"){
						if(tt0) {
				 		 	$("#t0").val(1);
				 			$(this).addClass("on");
							//$(".job_cont").eq($(this).index()).show();
							tt0 = false;
						} else {
							$(this).removeClass("on");
							//$(".job_cont").hide();
							tt0 = true;
						}
	                }
	                if(this.innerHTML=="长期钟点工"){
	                	if(tt1) {
				 		 	$("#t1").val(1);
				 			$(this).addClass("on");
							//$(".job_cont").eq($(this).index()).show();
							tt1 = false;
						} else {
							$(this).removeClass("on");
							//$(".job_cont").hide();
							tt1 = true;
						}
	                } 
	                if(this.innerHTML=="住家保姆"){
	                	if(tt2) {
				 		 	$("#t2").val(1);
				 			$(this).addClass("on");
							$(".job_cont").eq($(this).index()).show();
							tt2 = false;
						} else {
							$(this).removeClass("on");
							$(".job_cont").hide();
							tt2 = true;
						}
	                } 
	                if(this.innerHTML=="看护老人"){
	                	if(tt3) {
				 		 	$("#t3").val(1);
				 			$(this).addClass("on");
							$(".job_cont").eq($(this).index()).show();
							tt3 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							$(".job_cont").hide();
							tt3 = true;
						}
	                } 
	                if(this.innerHTML=="育婴师"){
	                	if(tt4) {
				 		 	$("#t4").val(1);
				 			$(this).addClass("on");
							$(".job_cont").eq($(this).index()).show();
							tt4 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							$(".job_cont").hide();
							tt4 = true;
						}
	                } 
	                if(this.innerHTML=="月嫂"){
	                	if(tt5) {
				 		 	$("#t5").val(1);
				 			$(this).addClass("on");
							$(".job_cont").eq($(this).index()).show();
							tt5 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							$(".job_cont").hide();
							tt5 = true;
						}
	                } 
	                if(this.innerHTML=="医院护工"){
	                	if(tt6) {
				 		 	$("#t6").val(1);
				 			$(this).addClass("on");
							//$(".job_cont").eq($(this).index()).show();
							tt6 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							//$(".job_cont").hide();
							tt6 = true;
						}
	                } 
	                if(this.innerHTML=="开锁换锁"){
	                	if(tt7) {
				 		 	$("#t7").val(1);
				 			$(this).addClass("on");
							//$(".job_cont").eq($(this).index()).show();
							tt7 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							//$(".job_cont").hide();
							tt7 = true;
						}
	                } 
	               
	                if(this.innerHTML=="管道疏通"){
	                	if(tt8) {
				 		 	$("#t8").val(1);
				 			$(this).addClass("on");
							//$(".job_cont").eq($(this).index()).show();
							tt8 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							//$(".job_cont").hide();
							tt8 = true;
						}
	                } 
	                if(this.innerHTML=="马桶维修"){
	                	if(tt9) {
				 		 	$("#t9").val(1);
				 			$(this).addClass("on");
							//$(".job_cont").eq($(this).index()).show();
							tt9 = false;
						} else {
							$(this).removeClass("on");
							//$(this).addClass("on").siblings().removeClass("on");
							//$(".job_cont").hide();
							tt9 = true;
						}
	                } 
					
				});
			});
			
			$(function(){
				$(".xg_zhengjian li").click(function(){
			        $(this).removeClass("on");
					$(this).addClass("on").siblings().removeClass("on");
					$(".zhengshu_main").hide();
					$(".zhengshu_main").eq($(this).index()).show();
				});
			});
			
			$(function(){
				$(".xg_zhengshu li").click(function(){
			        $(this).removeClass("on");
					$(this).addClass("on").siblings().removeClass("on");
					$(".xgzs").hide();
					$(".xgzs").eq($(this).index()).show();
				});
			});

			
			//兼容性浏览器
  			function getObjectURL(file) {
		    	var url = null ; 
		    	if (window.createObjectURL!=undefined) { // basic
		    		url = window.createObjectURL(file) ;
		    	} else if (window.URL!=undefined) { // mozilla(firefox)
		    		url = window.URL.createObjectURL(file) ;
		    	} else if (window.webkitURL!=undefined) { // webkit or chrome
		    		url = window.webkitURL.createObjectURL(file) ;
		    	}
		    	return url ;
		    }
			//上传图片
			function showPicture(){
				var strsrc=getObjectURL($("#headerpic").get(0).files[0]);
				
			    var formData = new FormData(); 
			    formData.append("file",$("#headerpic")[0].files[0]); 
				  
				 $.ajax({
					 	type:"post",
					 	url:"/file/upload.json",
					 	data : formData,  
					 	// 告诉jQuery不要去处理发送的数据
					 	processData : false,  
					 	// 告诉jQuery不要去设置Content-Type请求头 
					 	contentType : false, 
						success: function(data){
							$("#wSAttacId").val(data.info);
							$("#headimage").attr("src",strsrc);
						}
					});
			}
			
			
			//添加特长
			function addTechang(){
				var spec=$("#wSSpecial").val();
				var techang=$("#techang").val();
				if(techang!=null && techang!=""){
					$("#allTechang").append("<li class='on'>"+techang+"</li>");
					$("#techang").val("");
					spec+=" "+techang;
				}
				$("#wSSpecial").val(spec);
			}
			
			//添加内容
			function addContent(content,allUl){
				var techang=$("#"+content).val();
				if(techang!=null && techang!=""){
					$("#"+allUl).append("<li class='on'>"+techang+"</li>");
					$("#"+content).val("");
				}
			}
			
			//上传图片
			function uploadPicture(pics,images){
				var strsrc=getObjectURL($("#"+pics).get(0).files[0]);
				
				var formData = new FormData(); 
			    formData.append("file",$("#"+pics).get(0).files[0]); 
				  
				 $.ajax({
					 	type:"post",
					 	url:"/file/upload.json",
					 	data : formData,  
					 	// 告诉jQuery不要去处理发送的数据
					 	processData : false,  
					 	// 告诉jQuery不要去设置Content-Type请求头 
					 	contentType : false, 
						success: function(data){
							$("#"+pics+"id").val(data.info);
							$("#"+images).attr("src",strsrc);
						}
					});
				 
			}
			//删除图片
			function deletePicture(pics,images){
				$("#"+pics).val("");
				$("#"+images).attr("src","");
				$("#"+pics+"div").hide();
				$("#"+pics+"id").val("");
			}
		  
			//校验数据
			function jiaoyan(){
				var wSIdcard=$("#wSIdcard").val();
				if(wSIdcard==null || wSIdcard==""){
					alert("身份证号码不能为空！");
					return false;
				}
				
				if(!(/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(wSIdcard))) {
				//if (!(/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X|x)$/i.test(wSIdcard)))     {         
					alert('身份证号格式错误,请输入有效的身份证号！');         
					return false;     
				} 
				
				var wSName=$("#wSName").val();
				if(wSName==null || wSName==""){
					alert("姓名不能为空！");
					return false;
				}
				if(wSName.length>8){
					alert("请输入不超过8个字的姓名");
					return false;
				} 
				
				var wSTelephone=$("#wSTelephone").val();
				if(wSTelephone==null || wSTelephone==""){
					alert("联系方式不能为空！");
					return false;
				}  
				
				if(!(/^1(3|4|5|7|8)\d{9}$/.test(wSTelephone))){    
					alert("请输入有效的手机号码！");    
					return false;  
				} 
				
				var obj_lis1=$("#sex").find("li");
				obj_lis1.click(function() {
	                //alert(this.innerHTML);
	                if(this.innerHTML=="男"){
	                	$("#wSGender").val(1);
	                }
	                if(this.innerHTML=="女"){
	                	$("#wSGender").val(0);
	                } 
				});
				var obj_lis2=$("#edu").find("li");
				obj_lis2.click(function() {
						$("#wSEdu").val(this.innerHTML);
				});
				
				var obj_lis3=$("#workerstatus").find("li");
				obj_lis3.click(function() {
	                //alert(this.innerHTML);
	                if(this.innerHTML=="在职"){
	                	$("#wSWorkerStatus").val(1);
	                }
	                if(this.innerHTML=="待岗"){
	                	$("#wSWorkerStatus").val(0);
	                } 
				});
				
				
				
				var types= $("#t2").val();
				if(types==1){
                	var allBaomu="";
					var baomus=$("#allBaomu").find("li");
					for(i=0;i<baomus.length;i++){ 
						if($(baomus[i]).hasClass("on")){
							allBaomu+=" "+baomus[i].innerHTML;
						} 
					}
					
					$("#wSObjectInfo").val(allBaomu);
					var start=$("#startbaomu").val();
					var end=$("#endbaomu").val();
					var year=$("#yearbaomu").val();
					$("#wSPriceFirst").val(start);
					$("#wSPriceSecond").val(end);
					$("#wSWokerYear").val(year);
					
					//alert($("#wSObjectInfo").val()+"-----   "+$("#wSPriceFirst").val());
				}
				var types= $("#t3").val();
				 if(types==1){

                	var allBaomu="";
					var objs=$("#alllaoren").find("li");
					for(i=0;i<objs.length;i++){ 
						if($(objs[i]).hasClass("on")){
							allBaomu+=" "+objs[i].innerHTML;
						} 
					}
					$("#wSObjectInfo").val(allBaomu);
					var start=$("#startlaoren").val();
					var end=$("#endlaoren").val();
					var year=$("#yearlaoren").val();
					$("#wSPriceFirst").val(start);
					$("#wSPriceSecond").val(end);
					$("#wSWokerYear").val(year);
					
					var sexs=$("#oldsex").find("li");
					sexs.click(function() {
							var sexx=$("#wSOldGender").val();
						 	if(this.innerHTML=="男老人"){
			                	sexx=1;
			                }
			                if(this.innerHTML=="女老人"){
			                	sexx=0;
			                }
			                $("#wSOldGender").val(sexx);
					});
					var oldstatus=$("#oldstatus").find("li");
					oldstatus.click(function() {
						 var oldtype=$("#wSOldType").val();
						 if(this.innerHTML=="全自理"){
							 oldtype=0;
			                }
			                if(this.innerHTML=="半自理"){
			                	oldtype=1;
			                }
			                if(this.innerHTML=="不能自理"){
			                	oldtype=2;
			                }
			                $("#wSOldType").val(oldtype);
					});
					
					//alert($("#wSOldGender").val()+" ********** "+$("#wSOldType").val());
				}
				 var types= $("#t4").val();
				if(types==1){
                	var allBaomu="";
					var objs2=$("#allyuersao").find("li");
					for(i=0;i<objs2.length;i++){ 
						if($(objs2[i]).hasClass("on")){
							allBaomu+=" "+objs2[i].innerHTML;
						} 
					}
					$("#wSObjectInfo").val(allBaomu);
					var start=$("#startyuersao").val();
					var end=$("#endyuersao").val();
					var year=$("#yearyuersao").val();
					$("#wSPriceFirst").val(start);
					$("#wSPriceSecond").val(end);
					$("#wSWokerYear").val(year);

				}
				var types= $("#t5").val();
				if(types==1){
                	var allBaomu="";
					var objs3=$("#allyuesao").find("li");
					for(i=0;i<objs3.length;i++){ 
						if($(objs3[i]).hasClass("on")){
							allBaomu+=" "+objs3[i].innerHTML;
						} 
					}
					$("#wSObjectInfo").val(allBaomu);
					var start=$("#startyuersao").val();
					var end=$("#endyuersao").val();
					var year=$("#yearyuersao").val();
					$("#wSPriceFirst").val(start);
					$("#wSPriceSecond").val(end);
					$("#wSWokerYear").val(year);

				}
				
				var addr="";
				var lis=$("#address").find("li");
				for(i=0;i<lis.length;i++){ 
					if($(lis[i]).hasClass("on")){
						addr+=" "+lis[i].innerHTML;
					} 
				}
				$("#wSAddress").val(addr);
				
				var special="";
				var lists=$("#allTechang").find("li");
				for(i=0;i<lists.length;i++){ 
					if($(lists[i]).hasClass("on")){
						special+=" "+lists[i].innerHTML;
					} 
				}
				$("#wSSpecial").val(special);
				
				/* //alert($("#wSAddress").val());
				//alert($("#wSSpecial").val());
				alert($("#wSObjectInfo").val());
				 alert($("#wSPriceFirst").val());
				alert($("#wSPriceSecond").val());
				alert($("#wSWokerYear").val());  */
				
				
				$("#myform").submit();
			}
			
		</script>
	
</html>
